
def format_name(name):
    '''
    名称处理
    :param name:
    :return:
    '''
    if name:
        if '-' in name:
            code = name.split('-')[0]
            name = code.lower()
        else:
            name = name.split('.')[0].lower()
    return list(name)